<style type="text/css">
    .bjui-pageHeader {
        font-size: 18px;
        font-weight: bold;
    }

    .form {
        padding: 15px;
    }

    .form dl {
        overflow: hidden;
        padding-top: 15px;
    }

    .form dt {
        color: #666;
        float: left;
        font-size: 14px;
        padding: 3px 0 0;
        width: 11%;
    }

    .form dd {
        float: left;
        line-height: 22px;
    }

    dd.desc {
        height: 30px;
        padding: 0 10px;
        width: 150px;
    }

    fieldset {
        margin-top: 5px;
        margin-left: 5px;
        padding: 5px;
    }
</style>
<div class="bjui-pageHeader">
    <!-- 分页使用FORM -->
    <form action="{:U('Order/index')}" method="post" novalidate="novalidate" data-toggle="ajaxsearch" id="pagerForm">
    <!-- 分页使用FORM -->
    <!-- -->
        <input type="hidden" value="15" name="pageSize">
        <input type="hidden" value="{$nowPage}" name="pageCurrent">
        <input type="hidden" value="id" name="orderField">
        <input type="hidden" value="desc" name="orderDirection">
        <div class="bjui-searchBar">
            订单编号:<input type="text" name="keyword" class="form-control" title="关键字" value="{$keyword}">
            <button data-icon="search" class="btn btn-default" type="submit">查询</button>
            <a data-icon="undo" data-clear-query="true" data-toggle="reloadsearch" href="javascript:;" class="btn btn-orange">清空查询</a>
        </div>
    </form>

</div>
<div class="bjui-pageContent">

    <form method="post" data-toggle="validate">
        <table class="table table-bordered table-hover table-striped table-top">
            <thead>
            <tr>
                <th>订单编号</th>
                <th>产品标题</th>
                <th>订单人</th>
                <th>数量</th>
                <th>单价</th>
                <th>总额</th>
                <th>完成交易</th>
                <th>交易时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name='list' item='v'>
                <tr data-id="{$v.id}">
                    <td>{$v.ordid}</td>
                    <td>{$v.ordtitle|str2sub=26,'...'}</td>
                    <td>{$v.username}</td>
                    <td>{$v.ordbuynum}</td>
                    <td>{$v.ordprice}</td>
                    <td>{$v.ordfee}</td>
                    <td>
                        <if condition="$v['ordstatus'] eq 0">
                            <font color="red">否</font>
                        <else/>
                            <font color="blue">是</font>
                        </if>
                    </td>
                    <td>{$v.ordtime|date='Y-m-d H:i:s',###}</td>
                    <td>
                    <a href="{:U('Order/look',array('id' => $v['id']))}" data-toggle="dialog" data-id="Order-look" data-title="查看收货内容">查看</a>
                    <if condition="$v['ordstatus'] eq 0">
                    <a href="{:U('Order/edit',array('id' => $v['id']))}" data-toggle="dialog" data-id="Order-edit" data-title="编辑订单">编辑</a>
                    <a href="{:U('Order/del',array('id' => $v['id']))}" data-toggle="doajax" data-confirm-msg="确定要删除吗？" data-type="get">删除</a>
                    </if>
                    
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
    </form>
</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>

        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="15">15</option>
                <option value="30">30</option>
                <option value="60">60</option>
                <option value="100">100</option>
            </select>
        </div>
        <span>&nbsp;条，共 {$totalRows} 条</span>
    </div>

    <div class="pagination-box" data-toggle="pagination" data-total="{$totalRows}" data-page-size="15"
         data-page-current="{$nowPage}"></div>


</div>